package com.venusj.springcloud;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.config.server.EnableConfigServer;

/**
 * Created By Administrator
 * User: VenusZ
 * Date: on 2020/3/26 23:02
 * Desc: 结合rabbitMQ bus 消息总线  会在rabbitMQ中建立一个topic  springCloudBus 用来统一发送消息
 * 所以只要往ConfigCenter 发送bus-refresh 就可以通知其他客户端配置刷新了
 * curl -X POST "http://localhost:3344/actuator/bus-refresh/config-client:3355"    对单个微服务进行刷新通知
 * curl -X POST "http://localhost:3344/actuator/bus-refresh"    对所有config client 微服务进行刷新通知
 */
@SpringBootApplication
@EnableConfigServer
public class ConfigCenter3344 {
    public static void main(String[] args) {
        SpringApplication.run(ConfigCenter3344.class, args);
    }
}
